﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Dynamic;
using Common;
using DAL;
using Model;
namespace UI.system.page.config
{
    public partial class module : BaseAdmin
    {
        public AdminInfo info = new AdminInfo();
        public List<TagsInfo> tagslist = new List<TagsInfo>();
        public List<CategoryInfo> categorylist = new List<CategoryInfo>();
        public string[] news = { };
        public string[] quan = { };
        public string[] active = { };
        public int count = 2;
        protected void Page_Load(object sender, EventArgs e)
        {
            int adminid = B.MyAdmin.ID;
            info = AdminDAL.FindOneByID(1);
            tagslist = TagsDAL.FindAll(adminid);
            categorylist = CategoryDAL.FindAll(adminid);
            news = info.News.Split('&');
            quan = info.Quan.Split('&');
            active = info.Active.Split('&');
            
            
        }
        
    }
}